<?php
namespace app\api\controller;
use \think\Controller;
use \think\Db;
class Coach extends controller{
  public function coachlist(){
        $coachid=input('coachid');
        if($coachid==null){
        	$coach=Db::name('coach')->select();
        	return json($coach);
        }else{
        	$coach=Db::name('coach')->where('coachid',$coachid)->find();
   	return json($coach);
        }
   }      
 //////大师列表和详情 
  
        
  
}
